package com.jxbai.design.pattern.dcxy.prototype;

/**
 * @author jxbai
 * @date 2021/12/13 0013
 */
public class MainTest {

    public static void main(String[] args) throws CloneNotSupportedException {
        MyBatis myBatis = new MyBatis();
        User user = myBatis.getUer("张三");
        System.out.println(user);
        user.setAge(20);
        System.out.println(user);

        user = myBatis.getUer("李四");
        System.out.println(user);

        user = myBatis.getUer("王五");
        System.out.println(user);

    }
}
